---
order: -1
category: '@threlte/flex'
title: Examples
---

The package `@threlte/flex` is well suited for building responsive layouts.
Especially in an XR context, where using the [DOM is (currently) not
possible](https://www.w3.org/TR/webxr-dom-overlays-1/) you have to rely on
solutions that are native to WebGL.

The following examples show how to use the `@threlte/flex` package to build
responsive layouts in WebGL.

The left side is the CSS implementation, the right side is using `@threlte/flex`.

<Example path="flex/examples" />
